
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class CampConstantCfg : public ManualSingleton <CampConstantCfg>
{
	friend ManualSingleton <CampConstantCfg>;
public:
	CampConstantCfg();
	~CampConstantCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const CampConstantCfgInfo *GetCampConstantCfgInfo(int32_t electionopenCycle);
	const CampConstantCfgMap *GetCampConstantCfgMap() { return &m_CampConstantCfgMap; }
private:
	CampConstantCfgMap m_CampConstantCfgMap;
};

#define  g_MakeCampConstantCfgTable() (CampConstantCfg::Instance())
#define  g_GetCampConstantCfgTable() (CampConstantCfg::GetInstance())
#define  g_DelCampConstantCfgTable() (CampConstantCfg::Destroy())